<template>
	<view class="agreement">
		<u-parse :html="content"></u-parse>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				content: ''
			};
		},
		onLoad(el) {
			this.getAgreement(el.id)
		},
		methods:{
			getAgreement(id){
				let that = this
				that.$api.user_article({id: id}).then(res => {
					console.log(res)
					that.content = res.data.data
				})
			}
		}
	}
</script>

<style lang="less">

</style>
